package com.trust.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.trust.entity.DTO.PurchaseDTO;
import com.trust.entity.Param.PurchaseListParam;
import com.trust.entity.Purchase;
import com.trust.entity.VO.PurchaseVO;

public interface PurchaseService extends IService<Purchase> {

    /**
     * 获取入库单号
     * @return
     */
    String generalInCode();

    /**
     * 列表
     * @param param
     * @return
     */
    Page<PurchaseVO> list(PurchaseListParam param);

    /**
     * 新增 更新
     * @param param
     */
    Purchase saveAndUpdate(PurchaseDTO param);
}
